package com.es.param;

import co.elastic.clients.elasticsearch._types.SortOrder;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import java.io.Serializable;

/**
 * xxx
 *
 * @author heyonghao
 * @date 2023/2/5
 */
@Data
public class EsSearchParam<T> implements Serializable {
    private static final long serialVersionUID = 3987652044841706333L;

    private String indexName;
    private String filed;
    private String hlightFiled;
    private String value;
    @JsonIgnore
    private Class<T> targetClass;

    /**
     * 注意字段均为 _ 拼接属性；不能驼峰
     */
    @JsonIgnore
    private String sortFiled;
    @JsonIgnore
    private SortOrder sortOrder;
}
